package com.jdls.tanhua.exception;

import com.jdls.tanhua.vo.ErrorResult;
import lombok.Data;

/**
 * @author 嘉德罗斯
 * @date 2021/10/24
 */
@Data
public class AllException extends RuntimeException{

    private ErrorResult errorResult;

    public AllException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
